package com.itheima.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller

public class HelloController {

    @RequestMapping(path = "/sayHello")
    public String sayHello(String name , Model model){
        int i = 10 / 0 ;
        System.out.println("接收到客户端请求......");
        model.addAttribute("username","zhangsan");
        return "/success.jsp" ;
    }


}
